package com.bluemsun.naturallanguageprocessing.dao;

import com.bluemsun.naturallanguageprocessing.entity.Classify;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ClassifyMapper {
    /**
     * 删除类别
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 添加类别
     * @param record
     * @return
     */
    int insertSelective(Classify record);

    /**
     * 根据ID查询类别
     * @param id
     * @return
     */
    Classify selectByPrimaryKey(Integer id);

    /**
     * 根据ID修改类别
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Classify record);

    /**
     * 查询所有类别
     * @return
     */
    List<Classify> selectAllClassify();


}